package com.happe.foodeasy.manage.service.impl;

import com.happe.foodeasy.manage.dao.ManageNavDirectoryMapper;
import com.happe.foodeasy.manage.common.entity.ManageNavDirectoryEntity;
import com.happe.foodeasy.manage.service.ManageNavDirectoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ManageNavDirectoryServiceImpl implements ManageNavDirectoryService{
    @Autowired
    private ManageNavDirectoryMapper manageNavDirectoryMapper;

    @Override
    public List<ManageNavDirectoryEntity> select() {
        return manageNavDirectoryMapper.selectValid();
    }

    @Override
    public ManageNavDirectoryEntity selectNavByName(String navName) {
        return manageNavDirectoryMapper.selectNavByName(navName);
    }
}
